package com.book.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@ToString
public class BookVo {
    private Long id;
    private String name;
    private String synopsis;


    public BookVo(Book book) {
        this.id = book.getId();
        this.name = book.getName();
        this.synopsis = book.getSynopsis();
    }
}
